PyGtk is not difficult. It is similar to Tkinter. On the Internet, when the logic code and view code are combined, PyGtk performs the best job and should be able to learn it later. But there are still doubts about some things. PyGtk2.0 is a collection of Python modules and provides Python interfaces for GTK + 2. X. GTK (GIMPToolkit) is a library used to create a graphical user interface.
Install pygtk in python2.3 in Windows. The version is always faulty during installation. The experiment was successful only after several attempts,
Python2.3.3Pygtk-2.2.0.win32-py2.3.exe(or pygtk-2.2.0-1.win32-py2.3.exe)Gtk-runtime-environment-2.2.4.exe(or gtk-runtime-environment-2.2.4.2.exe)
Install the above. If there are other GTK files installed on the machine,It's hard to ensure the version,After the G
Python is very fun .. It took 5 to 6 hours. Based on some examples on the internet, I wrote a Google Translate desktop version. The interface and functions are simple and can only be translated between Chinese and English. Mainly to learn Python
It is very convenient to use Glade on the interface. After painting, you only need to link the signal, and glade with pygtk is very convenient.
The source code of 100 lines
#! /Usr/bin/ENV python
Yes, it
There are too many interesting and beautiful small programs in Ubuntu. I really want to know how the talented programmers do it, so I want to learn how to develop the linux interface program. The campus network is terrible when accessing foreign
regular expressions, it does require the GObject of the traditional format and does not parse the strangely formatted C code correctly.
To generate the initial definition file, we call h2def:python/usr/share/pygtk/2.0/codegen/h2def.py eggtrayicon.h > Trayicon.defs as follows
Note: If h2def.py is not installed in/usr, you must change the path to point to where it resides.
If we now look at the generated definition file, it should have some meaning.
is difficult for large interfaces or beginners to compile them.
Gnome-python is provided together with the tool named h2def. This tool parses the header file and generates a rough definition file. Note: Because it does not parse the C code, but only uses regular expressions, it does require the traditional format of GObject, and cannot correctly parse the C code that is specially formatted.
To generate an initial definition file, call h2def: python/usr/share/
GTK + is developed in C language, but its designers use object-oriented technology. C ++ (gtkmm), Perl, Ruby, Java, and Python (PyGTK) bindings are also provided. Other bindings include Ada, D, Haskell, PHP, and all. NET programming language, GTK + is also flexible, first used in X Window System, has now been transplanted to other platforms, such as Microsoft Windows, DirectFB, and Quartz in Mac OS X. PyGTK
I am a novice, want to develop a bit more, now the Python UI seems to have a lot of libraries, which UI development is better? Pyqt,pygtk,wxpython,tkinter, add, I'm under Linux.
Reply content:Python itself has a beautiful syntax, but it's ugly when it's in the GUI.
WxPython PYQT to describe the GUI in a way that is not graceful enough.
And you have a very awkward question, do you want to learn a tool that you simply can't control?
You've spent money o
and efficient. It has been widely used in GNOME and KDE. The use of middleware makes ibus small and efficient.
In addition, in terms of graphical interfaces, ibus uses pygtk to make development easier.
Install the ibus Input Method
If you compile ibus by yourself, you need the latest kernel-Python, while 8.04 of kernel-python is of the lower version. Compile the latest version of objective-Python first, which is troublesome. Fortunately, not long a
This chapter mainly revolves around Deepin screenshot tool to refer to module to slowly learn it, the basic technology concept decides superstructure, hope not to be sprayed.
PYGTK is the deepin used to build a GUI this is the basic tool, said that the building is not the foundation of the strange, screenshots are the window is this dongdong built.
PYGTK is one of the most commonly used modules, as follows:
Ies4linux-2.99 setup error-Linux Enterprise Application-Linux server application information, which is described below. The ies4linux-2.99.0.1 has some problems during installation.
-Q1-
Installing IE 6
Initializing
Creating Wine Prefix
Extracting CAB files
Installing IE 6
Installing DCOM98
Installing TTF Fonts
Installing ActiveX MFC42
/Home/myuser/. ies4linux/downloads/mfc42.cab: No such file or directory
An error occured when trying to cabextract some files.
-A1-
This is why I did not downloa
interface. How do you do? More PYQT Information
Last update: Git@osc Project recommended--PYQT Development Notepad was published 12 months ago by the TK graphical user interface Tkinter
The Tkinter (also known as the TK interface) is the standard Python interface for the TK graphical user interface Toolkit. TK is a lightweight cross-platform graphical user interface (GUI) development tool. TK and Tkinter can run on most Unix platforms, Windows, and Macintosh systems. T
graphical user interface Toolkit. TK is a lightweight cross-platform graphical user interface (GUI) development tool. TK and Tkinter can run on most Unix platforms, Windows, and Macintosh systems.
Tkinter is made up of a certain number of modules. Tkinter is located in a binary module named _tkinter (earlier version named Tkinter). Tkinter contains low-level interface modules for TK, and low-level interfaces are not used directly by application-level programmers, usually a shared library (or DL
The author in the Windows XP SP3 32-bit under pro-test passed, theoretically Win7 also no problem.1. If Python is installed on the system, please uninstall Python first.2. Download and install Python (x, y) 2.7.5.0:Http://www.softpedia.com/get/Programming/Other-Programming-Files/Python-x-y.shtmlInstall the installation location by default, install the module select All.3. Download and install PYGTK 2.24 all-in-one,:Http://ftp.gnome.org/pub/GNOME/binar
Python-xlib
About Xlib, online related are less, can only get information from the library file Http://python-xlib.sourceforge.net/?page=home
The basic concept is that the program and X server establish a connection, then communicate, event and so on through this link. As for Pixmap, Graphic context and the like, but also need further study.
Sample:
#!/usr/bin/env Pyhon # message.py--example Program illustrating #import dialog #pygtk.
Python-xlib
About Xlib, online related are less, can only get information from the library file Http://python-xlib.sourceforge.net/?page=home
The basic concept is that the program and X server establish a connection, then communicate, event and so on through this link. As for Pixmap, Graphic context and the like, but also need further study.
Sample:
#!/usr/bin/env Pyhon # message.py--example Program illustrating #import dialog #pygtk.
: Python colleagues who often use PyGTK2 for Xwindow programming in red Hat Linux environments may have already discovered the situation: if we write the following statement directly:
Import Pygtkpygtk.require (' 2.0 ') Import Gtkmain = Gtk. Window () # Create a windowmain.set_title ("Hello") # notice!
Such a statement will appear on the terminal at the end of this warning:
Error converting from UTF-8 to 'GB18030': 转换输入中出现无效字符序列
and the program window title will not be set to "Hello", but if the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.